import request from './request.js'; //

// 获取用户信息与openId
export function getUserInfoByCode(data) {
  return request.get('/wechat/auth/getUserInfo', data);
}

// 根据openid查询是否存在用户
export function selectUserByOpenId(data) {
  return request.get('/user/selectUserByOpenId', data);
}

// 绑定账号
export function bingAccount(file,){
  return request.post('/user/bindUser', file)
}

export function upload(file,){
  return request.uploadFile('upload', file)
}



